From 0bf55ad11aee51ec964904535b7a9ba0b694870f Mon Sep 17 00:00:00 2001 From: "awilliam@xenbuild2.aw" Date: Tue, 30 Jan 2007 23:35:32 -0700 Subject: [PATCH] [IA64] Include dummy EFI memory descriptors for unmapped ranges This eliminates a lot of warnings about dom0 trying to do UC mappings to WB ranges. Linux doesn't deal well with holes within a granule. Signed-off-by: Alex Williamson --- xen/arch/ia64/xen/dom_fw.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/xen/arch/ia64/xen/dom_fw.c b/xen/arch/ia64/xen/dom_fw.c index b122a793ca..8130486472 100644 --- a/xen/arch/ia64/xen/dom_fw.c +++ b/xen/arch/ia64/xen/dom_fw.c @@ -599,7 +599,17 @@ complete_dom0_memmap(struct domain *d, case EFI_UNUSABLE_MEMORY: case EFI_PAL_CODE: - /* Discard. */ + /* + * We don't really need these, but holes in the + * memory map may cause Linux to assume there are + * uncacheable ranges within a granule. + */ + dom_md->type = EFI_UNUSABLE_MEMORY; + dom_md->phys_addr = start; + dom_md->virt_addr = 0; + dom_md->num_pages = (end - start) >> EFI_PAGE_SHIFT; + dom_md->attribute = EFI_MEMORY_WB; + num_mds++; break; default: -- 2.30.2